export const option = function () {
  return {
    labelWidth: 120,
    emptyBtn: false,
    submitBtn: false,
    detail: ['view'].includes(this.type),
    column: [
      {
        label: '供应商名称',
        span: 8,
        prop: 'supplierName',
        formslot: true,
        rules: [
          {
            required: true,
            message: '请选择供应商名称',
            trigger: 'change'
          }
        ]
      },
      {
        label: '供应商编码',
        span: 8,
        prop: 'supplierCode',
        maxlength: 100,
        disabled: true
      },
      {
        label: '供应商身份',
        span: 8,
        prop: 'supplierIdentity_dictText',
        maxlength: 100,
        disabled: true
      },
      {
        label: '负责人',
        span: 8,
        prop: 'purchaseEngineer',
        formslot:true,
      }
    ]
  }
}

export const supplierOption = [
  { label: '选择', prop: 'radio', width: 50 },
  { label: '供应商编码', prop: 'supplierCode' },
  { label: '供应商名称', prop: 'supplierName' },
  { label: '供应商类型', prop: 'supplierType' },
  { label: '供应商身份', prop: 'supplierIdentity' }
]
